package com.fhz.day003.room;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;

import java.util.List;

/**
 * 时间:2022/3/22
 *
 * @author msfeng
 * 简述: TODO
 */
@Dao
public interface StudentDao {

    @Insert
    void insert(Student student);

    @Query("select * from student")
    List<Student> getAllStudent();

}

